package com.example.mapper;

import com.example.entity.Account;
import com.example.entity.Admin;
import com.example.entity.Business;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BusinessMapper {
    List<Business> selectAll(Business business);

    int insert(Business business);

    int updateById(Business business);

    int deleteById(Integer id);

    @Select("select * from business where username = #{username}")
    Business selectByUsername(String username);
}
